import api from "./api";

export const login = async (username, password) => {
    try {
        const response = await api.post('/api/v1/auth/signin', {
            username,
            password,
        }, {
            headers: {
                'Authorization': 'Bearer undefined', // 如果需要，可以在这里设置默认的 Authorization 头
            },
        });
        return response.data;
    } catch (error) {
        throw error;
    }
};